<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
  <model>
    <instance>
      <tblContent>
        <nContentKey/>
        <nContentPrimaryId/>
        <nVersion/>
        <cContentForiegnRef/>
        <cContentName/>
        <cContentSchemaName>Review</cContentSchemaName>
        <cContentXmlBrief>
          <Content showRelated="Tag">
            <Reviewer/>
            <ReviewDate/>
            <Summary/>
            <Rating/>
          </Content>
        </cContentXmlBrief>
        <cContentXmlDetail>
          <Content>
            <Reviewer/>
            <ReviewDate/>
            <Summary/>
            <Description/>
            <Rating/>
          </Content>
        </cContentXmlDetail>
        <nAuditId/>
        <nAuditKey/>
        <dPublishDate/>
        <dExpireDate/>
        <dInsertDate/>
        <nInsertDirId/>
        <dUpdateDate/>
        <nUpdateDirId/>
        <nStatus>1</nStatus>
        <cDescription/>
      </tblContent>
    </instance>
    <submission id="EditContent" action="" method="post" event="return form_check(this)"/>
    <bind nodeset="tblContent">
      <bind id="cContentReviewer" nodeset="cContentName" required="true()" type="string"/>
      <bind id="dPublishDate" nodeset="dPublishDate" required="false()" type="string"/>
      <bind id="dExpireDate" nodeset="dExpireDate" required="false()" type="string"/>
      <bind id="nStatus" nodeset="nStatus" required="true()" type="string"/>
      <bind id="cDescription" nodeset="cDescription" required="false()" type="string"/>
      <bind nodeset="cContentXmlBrief/Content">
        <bind id="cContentReviewer" nodeset="Reviewer" required="true()" type="string"/>
        <bind id="cContentReviewDate" nodeset="ReviewDate" required="true()" type="string"/>
        <bind id="dPublishDate" nodeset="PublishDate" required="false()" type="string"/>
        <bind id="cContentSummary" nodeset="Summary" required="true()" type="string"/>
        <bind id="cContentRating" nodeset="Rating" required="true()" type="string"/>
      </bind>
      <bind nodeset="cContentXmlDetail/Content">
        <bind id="cContentReviewer" nodeset="Reviewer" required="true()" type="string"/>
        <bind id="cContentReviewDate" nodeset="ReviewDate" required="true()" type="string"/>
        <bind id="dPublishDate" nodeset="PublishDate" required="false()" type="string"/>
        <bind id="cContentSummary" nodeset="Summary" required="true()" type="string"/>
        <bind id="cContentRating" nodeset="Rating" required="true()" type="string"/>
        <bind id="cContentDescription" nodeset="Description" required="true()" type="string"/>
      </bind>
      <bind id="dPublishDate" nodeset="dPublishDate" required="false()" type="string"/>
    </bind>
  </model>
  <group ref="EditContent" class="2col">
    <label>Edit Review</label>
    <group class="ContentColumn1">
      <group ref="Settings" class="leftSettings">
        <input bind="nContentKey" class="hidden">
          <label>ContentId</label>
        </input>
        <label>Settings</label>
        <input bind="dPublishDate" class="calendar short">
          <label>Publish Date</label>
        </input>
        <input bind="dExpireDate" class="calendar short">
          <label>Expire Date</label>
        </input>
        <select1 bind="nStatus" appearance="full" class="required vshort">
          <label>Status</label>
          <item>
            <label>Live</label>
            <value>1</value>
          </item>
          <item>
            <label>Hidden</label>
            <value>0</value>
          </item>
        </select1>
        <input bind="cDescription" class="short">
          <label>Change Notes</label>
        </input>
      </group>
    </group>
    <group class="ContentColumn2">
      <group ref="Content" class="Content">
        <label>Review Content</label>
        <label>Reviewers Name</label>
        <input bind="cContentReviewer" class="required long">
        </input>
        <label>Review Date</label>
        <input bind="cContentReviewDate" class="calendar short">
        </input>
        <label>Summary</label>
        <textarea bind="cContentSummary" class="TextArea xhtml" rows="6" cols="70">
        </textarea>
        <label>Full Description</label>
        <textarea bind="cContentDescription" class="TextArea xhtml" rows="15" cols="70">
        </textarea>
        <select1 bind="cContentRating" appearance="full" class="required vshort">
          <label>Rating</label>
          <item>
            <label>1</label>
            <value>1</value>
          </item>
          <item>
            <label>2</label>
            <value>2</value>
          </item>
          <item>
            <label>3</label>
            <value>3</value>
          </item>
          <item>
            <label>4</label>
            <value>4</value>
          </item>
          <item>
            <label>5</label>
            <value>5</value>
          </item>
        </select1>
        <label></label>
        <relatedContent search="find add" type="Tag" relationType="Tag" direction="2way">
          <label>Related Tags</label>
        </relatedContent>
      </group>
    </group>
  </group>
  <group ref="submit" class="contentSubmit">
    <submit submission="" ref="ewSubmit" class="principle">
      <label>Save Review</label>
    </submit>
  </group>
</Content>
